#ifndef BROWSEPLUGIN_H
#define BROWSEPLUGIN_H


#include "PluginsInterface.h"
#include "ui_browse.h"
#include <QDebug>
#include <QSettings>
#include <QtCore>
#include <QtGui>

class BrowsePlugin : public QObject, addImagePluginClass
{
	Q_OBJECT
	Q_INTERFACES(addImagePluginClass)

public:
	BrowsePlugin();
//        inline QGridLayout* getSettingsTab(QWidget *Tab) { return 0; }
	void setStratum(addImagePluginStratum *Stratum);
	inline void retranslate() { ui.retranslateUi(myForm); }
//	BrowsePlugin( addImagePluginStratum *Stratum );
private:
// vars
	QSettings *Config;
	Ui::Form ui;
	QWidget *myForm;
	bool checkImageValid(QString ImageName);
	void stratumApeared();

private slots:
	void browseButtonClicked();
//	void insertButtonClicked();
//	void testSlot();
	void addFromLineEdit();

signals:
	void addImage(QString); // for sending image to application
	void addMyWidget(QWidget*);
/*
*/
};


#endif
